package felix.multilauncher.View;

import android.support.v4.view.ViewPager;

import java.util.ArrayList;
import java.util.List;

import felix.felixlib.Base.BaseAty;
import felix.felixlib.Base.BaseFg;
import felix.felixlib.Base.adp.FgPagerAdp;
import felix.felixlib.annotation.BindLayout;
import felix.felixlib.annotation.BindView;
import felix.multilauncher.R;

@BindLayout(R.layout.aty_main)
public class MainAty extends BaseAty {
    @BindView(R.id.vp_main)
    ViewPager mVpMain;
    List<BaseFg> mBaseFgs = new ArrayList<>();

    @Override
    protected void initData() {
        super.initData();
        mBaseFgs.add(new PhoneFg());
        mVpMain.setAdapter(new FgPagerAdp(mContext, getFragmentManager(), mBaseFgs));
    }
}
